package cn.edkuir.order.service;

import cn.edkuir.common.to.mq.SeckillOrderTo;
import cn.edkuir.order.vo.*;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.edkuir.common.utils.PageUtils;
import cn.edkuir.order.entity.OrderEntity;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author xinzi
 * @email 1228604898@qq.com
 * @date 2021-04-14 21:21:11
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;

    SubmitRespVo submitOrder(OrderSubmitVo orderSubmitVo);

    PayVo getOrderPayVo(String orderSn);

    PageUtils queryPageWithItem(Map<String, Object> params);

    String handlePayResp(PayAsyncVo payAsyncVo);

    void createSeckillOrder(SeckillOrderTo seckillOrderTo);
}

